/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import javax.validation.constraints.NotBlank;

/**
 * 转发商品规格Entity
 */
@Table(name="biz_activity_goods_spec", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="member_id", attrName="memberId", label="会员Id"),
		@Column(name="trans_activity_id", attrName="transActivityId", label="转发活动Id"),
		@Column(name="trans_goods_id", attrName="transGoodsId", label="转发商品Id"),
		@Column(name="sort", attrName="sort", label="顺序"),
		@Column(name="activity_id", attrName="activityId", label="活动Id"),
		@Column(name="brand_id", attrName="brandId", label="品牌Id"),
		@Column(name="cate_id", attrName="cateId", label="分类Id"),
		@Column(name="goods_id", attrName="goodsId", label="商品Id"),
		@Column(name="goods_spec_id", attrName="goodsSpecId", label="商品规格Id"),
		@Column(name="code", attrName="code", label="条形码"),
		@Column(name="name", attrName="name", label="尺码", queryType=QueryType.LIKE),
		@Column(name="color", attrName="color", label="颜色"),
		@Column(name="price", attrName="price", label="吊牌价"),
		@Column(name="vip_price", attrName="vipPrice", label="VIP会员价"),
		@Column(name="member_price", attrName="memberPrice", label="普通会员价"),
		@Column(name="agent_price", attrName="agentPrice", label="代购费"),
		@Column(name="remarks", attrName="remarks", label="备注"),
		@Column(name="seckill_price", attrName="seckillPrice", label="秒杀价"),
		@Column(name="stock_num", attrName="stockNum", label="库存"),
		@Column(name="sale_num", attrName="saleNum", label="销售"),
		@Column(name="is_buy", attrName="isBuy", label="是否购买"),
		@Column(name="add_price", attrName="addPrice", label="加价"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false)
	},orderBy="a.create_date ASC"
)
public class TransGoodsSpec extends DataEntity<TransGoodsSpec> {

	private static final long serialVersionUID = 1L;

	private String memberId;		// 会员Id
	private String transActivityId;	// 转发活动Id
	private String transGoodsId;	// 转发商品Id
	private String activityId;		// 活动id
	private String brandId;		// 品牌id
	private String cateId;		// 分类id
	private String goodsId;		// 商品id
	private String goodsSpecId;		// 商品规格id
	private Integer sort;		// 顺序
	private String code;		// 条形码
	private String name;		// 尺码
	private String color;		// 颜色
	private Double price;		// 吊牌价
	private Double vipPrice;		// VIP会员价
	private Double memberPrice;		// 普通会员价
	private Double agentPrice;		// 代购费
	private String remarks;		// 备注
	private Double seckillPrice;		// 秒杀价
	private Integer stockNum;		// 库存
	private Integer saleNum;		// 销量
	private Boolean isBuy;		// 是否购买
	private Double addPrice;		// 加价

	public TransGoodsSpec() {
		this(null);
	}

	public TransGoodsSpec(String id){
		super(id);
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getTransActivityId() {
		return transActivityId;
	}

	public void setTransActivityId(String transActivityId) {
		this.transActivityId = transActivityId;
	}

	public String getTransGoodsId() {
		return transGoodsId;
	}

	public void setTransGoodsId(String transGoodsId) {
		this.transGoodsId = transGoodsId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getCateId() {
		return cateId;
	}

	public void setCateId(String cateId) {
		this.cateId = cateId;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsSpecId() {
		return goodsSpecId;
	}

	public void setGoodsSpecId(String goodsSpecId) {
		this.goodsSpecId = goodsSpecId;
	}

	@NotBlank(message="条形码不能为空")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@NotBlank(message="尺码不能为空")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getMemberPrice() {
		return memberPrice;
	}

	public void setMemberPrice(Double memberPrice) {
		this.memberPrice = memberPrice;
	}

	public Double getVipPrice() {
		return vipPrice;
	}

	public void setVipPrice(Double vipPrice) {
		this.vipPrice = vipPrice;
	}

	public Double getAgentPrice() {
		return agentPrice;
	}

	public void setAgentPrice(Double agentPrice) {
		this.agentPrice = agentPrice;
	}

	@Override
	public String getRemarks() {
		return remarks;
	}

	@Override
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Double getSeckillPrice() {
		return seckillPrice;
	}

	public void setSeckillPrice(Double seckillPrice) {
		this.seckillPrice = seckillPrice;
	}

	public Integer getStockNum() {
		return stockNum;
	}

	public void setStockNum(Integer stockNum) {
		this.stockNum = stockNum;
	}

	public Integer getSaleNum() {
		return saleNum;
	}

	public void setSaleNum(Integer saleNum) {
		this.saleNum = saleNum;
	}

	public Boolean getIsBuy() {
		return isBuy;
	}

	public void setIsBuy(Boolean isBuy) {
		this.isBuy = isBuy;
	}

	public Double getAddPrice() {
		return addPrice;
	}

	public void setAddPrice(Double addPrice) {
		this.addPrice = addPrice;
	}
}